package com.ad.platform.model.base;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
@SuppressWarnings("serial")
@JsonIgnoreProperties(ignoreUnknown = true)
public abstract class BaseModel implements Serializable {
	@TableId(value = "id")
	private Long id;

	@TableField(value = "create_user_name", fill = FieldFill.INSERT)
	private String createUserName;

	@TableField(value = "create_user_id", fill = FieldFill.INSERT)
	private String createUserId;

	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") 
	@TableField(value = "create_time", fill = FieldFill.INSERT)
	private Date createTime;

	@TableField(value = "update_user_name", fill = FieldFill.INSERT_UPDATE)
	private String updateUserName;

	@TableField(value = "update_user_id", fill = FieldFill.INSERT_UPDATE)
	private String updateUserId;

	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") 
	@TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
	private Date updateTime;



}
